<?php
namespace app\api\model;

use think\Model;
use think\Db;
use think\Cache;

class InspectReport extends Model
{
    protected $table = 'inspect_report';

    public function getDistrictIdAttr($val){
        $res = Db::table('inspect_district')->where('id', $val)->value('name');
        return $res;
    }

    public function getConsIdAttr($val){
        $res = Db::table('constructors')->where('id', $val)->value('name');
        return $res;
    }



}